package com.online.service;

import com.online.entity.Paper;

import java.util.List;

public interface PaperService {

    /**
     * 向当前的考试增加一道题
     * @param paper
     * @return
     */
    int addARecordByExamId(Paper paper);

    /**
     * 查询一次考试题的题库编号
     * @param examId
     * @return
     */
    List<Integer> showAllQuestionId(Integer examId, Integer questionType);

    /**
     * 删除一道题
     * @param examId
     * @return
     */
    int deleteARecord(int examId);

    /**
     * 查询满足examId的所有题
     * @param examId
     * @return
     */
    List<Paper> showPaperByExamId(Integer examId);

    Paper showRecord(String studentNumber,Integer questionType,Integer examId,Integer questionENumber);
}
